<?php
include_once("../modules/checkA.php");
include_once("../../config.php"); 
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'employee'");
//因为系统的表不跟athlon，所以要特别定义板后缀
//因为系统的表不跟athlon，所以要特别定义板后缀
//因为系统的表不跟athlon，所以要特别定义板后缀
//因为系统的表不跟athlon，所以要特别定义板后缀
$plate['table_Suffix']="user";
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid']; 

//接收需要修改的数据的id
$new_detail_nid = addslashes($_REQUEST['nid']);

//传递过来的页面信息。返回的时候，会根据这些信息返回原来的页面
$nowpageid      = addslashes($_REQUEST['nowpageid']);
$sortby         = addslashes($_REQUEST['sortby']);
$term_nid       = addslashes($_REQUEST['term_nid']);



$_REQUEST['ai_authur']      = $_SESSION['username'];


//设置需要搜索的表格的前缀后缀
$table_Suffix = $plate['table_Suffix'];
$table        = $table_Prefix . $table_Suffix;


$sql=update_date($table,$_REQUEST,"nid",$new_detail_nid);

$query = mysql_query($sql) or die ($sql);
mysql_close($con);

?>



<?

$nowpageid = $_GET["nowpageid"];

?>


<script type="text/javascript">

     alert("输入信息已保存，点击确认返回继续操作.");
     document.location.href = "detail-list.php?nowpageid=<? echo $nowpageid ?>&sortby=<? echo $sortby?>&nid=<? echo $term_nid ?>&sys_part=<? echo $system_part ?>"

</script>


</body>